package com.tangruojie.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum Role {

    USER(1, "普通用户"),
    ADMIN(2, "管理员");

    @EnumValue
    private final Integer value;
    @JsonValue
    private final String description;

}
